package router

import (
	"github.com/gin-gonic/gin"
	"order_bff/api/order"
	"order_bff/middlerware"
)

func InitOrderRouter(router *gin.Engine) {

	OrderRouter := router.Group("o/v1/order").Use(middlerware.CheckToken())
	{
		OrderRouter.POST("", order.Create)      //创建订单
		OrderRouter.GET("", order.List)         //订单列表
		OrderRouter.GET("detail", order.Detail) //订单详情
		OrderRouter.PUT("", order.Update)       //更新订单
	}
}
